﻿@model List<ProductViewModel>

@{
    ViewBag.Title = "商品列表";
    Layout = "_Layout";
}

<h2>商品列表</h2>
<table class="table table-hover">
    <tr>
        <td>id</td>
        <td>商品名称</td>
        <td>商品类型</td>
        <td>价格</td>
        <td>添加人</td>
        <td>最后维护人</td>
        <td>最后更新时间</td>
    </tr>
    @foreach(var p in Model)
    {
        <tr>
            <td>@p.Id</td>
            <td>@p.CategoryName</td>
            <td>@p.ProductName</td>
            <td>@p.Price</td>
            <td>@p.CreatedNickName</td>
            <td>@p.UpdatedNickName</td>
            <td>@p.UpdatedTime</td>
        </tr>
    }
</table>